SUBDIRS = lars_reactor lars_dns lars_reporter lars_agent api/cpp/lars_api api/cpp/example

.PHONY: all
all:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
		echo "build in $$subdir";\
		$(MAKE) -C $$subdir; \
	done

.PHONY: clean clean2
clean:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
		echo "clean in $$subdir"; \
		$(MAKE) -C $$subdir clean; \
	done

clean2:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
		echo "clean2 in $$subdir"; \
		$(MAKE) -C $$subdir clean2; \
	done